package cn.tedu.charging.order.feign;


import cn.tedu.charging.commom.pojo.JsonResult;
import cn.tedu.charging.commom.pojo.param.ChargingProcessParam;
import cn.tedu.charging.commom.pojo.vo.ChargingProcessVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 订单用来访问计价服务的客户端
 */
//costService 要和 nacos 里的服务名称一致,你要调用谁,就写谁
@FeignClient("costService")
public interface CostClient {

    @PostMapping("/cost/calculate")
    JsonResult<ChargingProcessVO> calculateCost(@RequestBody ChargingProcessParam chargingProcessParam);

}
